//
//  AudioVModel.swift
//  Scaner
//
//  Created by liyahao on 2025/4/15.
//

import UIKit

final class AudioVModel: BaseObserved<AudioFiles> {
    
    override func loadDatas() {
        self.loadSQLData()
        
        if models.isEmpty {
            self.models.append(contentsOf: AudioFiles.samples)
        }
    }
    
    func removeData(model: AudioFiles) {
        delSQLData(model: model, value: model.id)
        PathTool.delAudios(model.name)
    }
}
